package com.qs.education.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.beans.EducationClassBean;
import com.qs.education.service.IClassAPPService;

/**
 * @class EducationClassController
 * @author Leon
 * @description
 * @date Nov 8, 2018
 */
@RestController
@RequestMapping("/class")
public class EducationClassController {

	@Autowired
	private IClassAPPService claaAppService;
	
	/**
	 * @Description getAllClass
	 * @author Leon
	 * @date   Nov 8, 2018
	 * @param  
	 * @return Map<String,Object>
	 */
	@RequestMapping("/getAllClass")
	public Map<String,Object> getAllClass(){
		Map<String,Object> map = new HashMap<String,Object>();
		ResponseListBean<EducationClassBean> list = claaAppService.getAllClass();
		map.put("list", list);
		return map;
	}
}
